package com.qkl.user.dto.user;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class ForgetPasswordDto {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotNull(message = "问题1不能为空")
    private Integer questionOne;
    @NotBlank(message = "答案1不能为空")
    private String answerOne;

    @NotNull(message = "问题2不能为空")
    private Integer questionTwo;
    @NotBlank(message = "答案2不能为空")
    private String answerTwo;
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, message = "密码长度不能少于6位")
    private String password;
    @NotBlank(message = "再次密码不能为空")
    @Size(min = 6, message = "密码长度不能少于6位")
    private String passwordTo;

}
